package mspbots.qbd.data.desktop.profitandloss;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * mspbots.data.sync.quickbooks.desktop.profitandloss.ProfitAndLossYTDCompRepository
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/6/9
 */
public interface ProfitAndLossYTDCompRepository extends R2dbcRepository<ProfitAndLossYTDComp, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param rowNumber  other Id
     * @param tenantId   tenant id
     * @param timePeriod timePeriod
     * @return account entrity
     */
    Mono<ProfitAndLossYTDComp> findByTenantIdAndRowNumberAndTimePeriod(Long tenantId, Integer rowNumber, String timePeriod);
}
